package UserService.UserController;

import UserService.service.UserService1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import UserService.pojo.User;


@RestController
@RequestMapping("user")
public class userController {

    @Autowired
    private UserService1 userService1;

    @GetMapping("/{uid}")
    public User getById(@PathVariable("uid") String uid){
        return this.userService1.queryById(uid);
    }
}
